class Account < ActiveRecord::Base

  def self.findByNameAndPassword username,password
    find(:first,:conditions => ['username = ? AND password = ?',username,password])
  end

  def self.findPage offset,limit
    find(
      :all,
      :offset => offset,
      :limit => limit
    )
  end
  
end
